﻿// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.

namespace System.Device.Gpio;

/// <summary>
/// Resulting object after waiting for an event to occur.
/// </summary>
public struct WaitForEventResult
{
    /// <summary>
    /// The event types that was detected.
    /// This is especially useful when listing to both rising and falling edges, where it will indicate which kind of edge was seen.
    /// </summary>
    public PinEventTypes EventTypes;

    /// <summary>
    /// True if waiting for the event timed out. False if an event was triggered before the timeout expired.
    /// </summary>
    public bool TimedOut;
}
